Jacobi elliptic function expansion method and periodic wave solutions of nonlinear wave equations