Implementation of an efficient element-free Galerkin method for electromagnetic computation