Hydrogen-ion-induced detrapping of implanted deuterium in graphite