Finite-size scaling of complex magnetic materials near the phase transition