Hydrogel photocatalysts for efficient energy conversion and environmental treatment