Anisotropy of polarized X-ray emission from atoms and molecules