Traveling wave solutions of the nonlinear Drinfel’d–Sokolov–Wilson equation and modified Benjamin–Bona–Mahony equations