Dynamics of the ferroelastic phase transition of lead phosphate (PO4)2Pb3