Effect of preparation conditions on the properties and transformation of amorphous calcium phosphate