The cities were ranked according to factors like emotional well-being, income, employment, and community