Inelastic scattering contrast in beam-rocking electron diffraction experiments