Polarization of x-gamma radiation produced by a Thomson and Compton inverse scattering