Low regularity solutions for a class of nonlinear wave equations