Polymorphism of molecules and complex ions in oxygen compounds of silicon and phosphorus. Report 2. On the mechanism of the phase transition in Mg2P2O7