Theory of absorption and emission of radiation in molecular collisions: Semiclassical model