Deuterium retention in doped graphites