Crystallization of an inorganic phase controlled by a polymer matrix