Advantages and disadvantages of photovoltaic grid connection and battery