A former US serviceman who lost his genitals in an explosion in Afghanistan has regained full function after a penile and scrotal transplant.