Generation of linearly polarized transition radiation X-ray beam