Cascaded model predictive speed control of a permanent magnet synchronous machine