Porosity determination in doped graphites using small-angle neutron scattering measurements