Gypsum transformation to calcium phosphates