Unimolecular reactions in isolated and collisional systems: Deuterium isotope effect in the photoisomerization of stilbene