An inexact Newton method for solving complementarity problems in hydrodynamic lubrication