Investigation on the performance and environmental impact of a latent heat thermal energy storage system