Microstructural investigation of hydroxyapatite–polyelectrolyte composites