Porous materials for direct and indirect evaporative cooling in buildings