Spin-gradient–induced polarization in magnetic textures: A variational continuum theory of skyrmions and spin waves | Synapse