Inelastic effects in molecular junctions in the Coulomb and Kondo regimes: Nonequilibrium equation-of-motion approach