Development Of A Framework For Charging Energy Storage For Large-Nonlinear Loads In A Tightly Coupled Microgrid Power System