Effect of titanium and zirconium substitutions for calcium on the formation and structure of tricalcium phosphate and hydroxyapatite