Design and control of an integrated BMS/DC-DC system for electric vehicles