Uniform semiclassical evaluation of Franck–Condon factors and inelastic atom–atom scattering amplitudes