Measurement technique to characterize after-effect in soft magnetic materials