Complete group classification of a class of nonlinear wave equations