Compact model of latent heat thermal storage for its integration in multi-energy systems