Calibration of barkhausen noise for residual stress measurement