Coil and magnet shape optimization of an ironless AFPM machine by means of 3D FEA