Simultaneous and consecutive charging and discharging of a PCM-based domestic air heater with metal foam