Inelastic scattering of fast particles on nuclei