On the classification of large residential buildings stocks by sample typologies for energy planning purposes