OPTIMAL CONTROL OF LINEAR INDUCTION MACHINES TAKING INTO ACCOUNT END-EFFECTS