Model predictive control for solar hot water systems