Analysis and design of bi-directional DC-DC converters for ultracapacitors management in EVs