Two-Step Optimization of Envelope Design for the Reduction of Building Energy Demand