An Integrated Design Environment For Electric Machines