Harnessing the power of the sun to purify water