Identification of hydrated phases in ALPO4-5, and explanation of their effect on the water sorption and dynamics