Crystallization of bioinspired citrate-functionalized nanoapatite with tailored carbonate content.