Text this: Second law analysis of latent thermal storage for solar system