A study on a method solving optimal currents of IPMSM based on the PDS for electric vehicles