Effect of anions on the phase stability of γ-FeOOH nanoparticles and the magnetic properties of gamma-ferric oxide derived from lepidocrocite