Design Shape Optimisation of Electromagnetic Devices Using the Finite Element Method