Shape change and phase transition of needle-like non-stoichiometric apatite crystals