Magnetic Circuits Analysis based on the Finite Elements Method : Basic considerations and an application