Relationship between selection, optimization and compensation and the work ability of nurses over fifty years of age