Arbitrarily rotating polarization direction and manipulating phases in linear and nonlinear ways using programmable metasurface | Synapse