FEM integrator for the Landau-Lifshitz-Gilbert equation for MATLAB.