Thermal, optical, and materials design for water and energy sustainability