Handling and stability control for an in-wheel-motor-driven electric vehicle