Text this: Approaching a Nearly Zero Energy Building Integrated with PCM by Optimization of Energy Sources