A semiclassical theory for spectral line broadening in molecules