Fast detector of the ellipticity of infrared and terahertz radiation based on HgTe quantum well structures