Topaic: Electrical machine design