Thermal management of photovoltaics using phase change materials