Electromagnetic moment-method solvers in MATLAB