Compact Polarized X-Ray Source Based on All-Optical Inverse Compton Scattering