how to connect solar panel to inverter and battery