Phosphorylation of the spindle checkpoint protein Mad2 regulates its conformational transition