Ion beam implantation and thermal desorption of deuterium ions in graphite