Text this: A Unified Controller for Multi-State Operation of the Bi-Directional Buck–Boost DC-DC Converter