An integrated energy strategy for the optimization of retrofit actions in urban planning