The rankings are based on how cities meet American retirees’ expectations, like quality of life, affordability and health.