Text this: Design and real-time simulation of an AC voltage regulator based battery charger for large-scale PV-grid energy storage systems