Quality of life and residential environments for the elderly