Continuum optical radiation produced by 0.6–2.4 MeV H+ and He+ ion bombardments of thin carbon foils