Thermal energy storage for solar applications