Competition of bulk trapping and surface erosion in the kinetics of tritium inventory and permeation in plasma protection metals