Entropy generation analysis for the design improvement of a latent heat storage system