The structure of graphite and silicon carbide resulting from helium-ion bombardment