The multiple roles of a chemical tribofilm in hydrogen uptake from lubricated rubbing contacts