Evaluating the Relationship between the Population Trends, Prices, Heat Waves, and the Demands of Energy Consumption in Cities