Application of phase-change material in solar hot-water system