Equation of motion of the triple contact line along an inhomogeneous surface