Size effect in X-ray and electron diffraction patterns from hydroxyapatite particles