Convergence improvement in finite difference solution using MC and DC methods for magnetic field analysis