Performance enhancement of latent thermal energy system under alternating magnetic field