Thermal management for the integration of battery and power electronics using phase change materials