Integrated modelling and analysis of buildings and community energy systems