Sunyaev–Zel'dovich polarization as a probe of the intracluster medium