Hermite pseudospectral method for nonlinear partial differential equations