Nurse staffing and quality of care in nursing homes