An electron microscopy study of the formation of hydroxyapatite through sol-gel processing