Control of the polarization direction of isolated attosecond pulses using inhomogeneous two-color fields