Local energy planning in the built environment