Temperature distribution inside hot-water storage tanks of solar collectors