Ionic properties of hydrogenated and fluorinated fullerenes