Thermal management for propulsion and power systems