An analysis of cavity nucleation in superplasticity