Magnetic states of heterophase particle in the field of mechanical stresses