Control of electric reluctance machine