Synthesis of calcium-deficient hydroxyapatite nanowires and nanotubes performed by template-assisted electrodeposition.