A retrospective cohort study of risk factors for mortality among nursing homes exposed to COVID-19 in Spain