OPTIMAL BATTERY CAPACITY OF GRID CONNECTED PV BATTERY SYSTEMS