Vector controlled AC motor drives for long cable application: analysis of harmonics at motor terminal