A model to design and optimize multi-energy systems in buildings at the design concept stage