A model for trapping and re-emission at hydrogen ion implantation