Cascaded latent thermal energy storage using a charging control method