Electrostatic monitoring of boundary and mixed lubrication