Control of a Bidirectional Buck-Boost DC-DC Converter for Marine Applications