Magnetic hysteresis under applied stress