Discrete-time model of an IPMSM based on variational integrators | IEEE Conference Publication | IEEE Xplore