Scattering effects on resonant tunneling in double-barrier heterostructures