On the class of nonlinear PDEs that can be treated by the modified method of simplest equation. Application to generalized Degasperis-Processi equation and b-equation