Pwnc: Electrical machine design