Investigation of the glass-crystal transition of Na5Ti(PO4)3