Passive thermal management using phase change materials