Energy models towards the retrofitting of the historic built heritage