Semiclassical treatment of rainbow maxima in differential cross sections for inelastic scattering