Diagnosis of the building stock using Energy Performance Certificates for urban energy planning in Mediterranean compact cities. Case of study