Surface composition modifications of carbides and doped graphites due to D+ ion bombardment