Computational Optimization of Solar Thermal Energy Generation and Storage