Sustainable Energy Planning of Urban Areas. Thermodynamics Indicators