Finite element computations of resonant modes for small magnetic particles