DSP Applications in Electric and Hybrid Electric Vehicles