Magnetostatic modelling of thin layers using the method of moments and its implementation in OCTAVE/MATLAB. (2018)