Symbolic computation of exact solutions expressible in hyperbolic and elliptic functions for nonlinear PDEs