Finite element solution of the field problem involved in moving devices levitated by magnetic attraction