Transient analysis of direct contact evaporation and condensation within packed beds