An algebraic model to describe atom–diatom inelastic collisions in the semiclassical approximation