In situ attenuated total reflection (ATR) spectroscopic analysis of tribological phenomena