Text this: Design and control of a buck-boost charger-discharger for DC-bus regulation in microgrids