Solar fuels via two-step thermochemical redox cycle for power and fuel production