Treffer: Embedded real-time nonlinear model predictive control for the thermal torque derating of an electric vehicle