Thermal behaviour of a modular storage system when subjected to variable charge and discharge sequences