Electric drives and their control