Bethe-Salpeter equation for J = 0 nucleon-nucleon scattering with one-boson exchange