X-ray-photon Compton scattering by a linear molecule