The Cost-Optimal Optimization of public buildings in cold and warm climates: two case-studies in Germany and Italy