Dual-energy solar water heater