Orientation effects in anomalous elastic scattering of polarized X-rays by a linear molecule