A methodology for assessing the energy performance of large scale building stocks and possible applications