The Effect of a Multicomponent Intervention on Quality of Life in Residents of Nursing Homes: A Randomized Controlled Trial (COSMOS).