The Painlevé analysis and exact travelling wave solutions to nonlinear partial differential equations