Water-responsive materials for sustainable energy applications