A Modified Global Management Controller for a Grid-connected PV System with Battery under Various Power Balance Modes