A laser Raman study of D+ and He+ ion irradiated diamond and graphite