A practical method for characterization of magnetic materials