Solar energy could help purify water, researchers find