Environmental and economic optimisation of buildings for different climates