New approach to hysteresis process investigation using mechanical and magnetic Barkhausen effects