Compton-effect cross section for the electron gas: collective to single-particle transition