Calculation of transition probabilities for collinear atom–diatom and diatom–diatom collisions with Lennard-Jones interaction