Exp-function method for nonlinear wave equations