Topological Representation and Constraint Analysis of Phase Change in the Metamorphic Mechanisms