Harnessing solar power for AC