On-chip optical wavefront shaping by transverse-spin-induced Pancharatanam–Berry phase | Synapse