Dynamic electric regenerative braking for vehicles comprising converters between the power source and the motor