The optical polarization of X-ray binaries