Nonprofit nursing homes provide better care, major study finds