Solar pv and battery storage integration