Progressive changes in crystallographic textures of biominerals generate functionally graded ceramics