On the critical thickness of protective films at sliding interfaces