Global solutions of nonlinear wave equations