Lipschitz metric for a nonlinear wave equation