Thermal energy storage for direct steam generation