Optimization of Multilayered Walls for Building Envelopes Including PCM-Based Composites