Text this: Second law analysis and optimization of solar hot water systems