A criterion for cavitation of two-phase superplastic alloys