Power quality optimization framework for three phase microgrids with grid tied solar PV and battery storage under nonlinear loads. — SciRadar