Ferroionic inversion of spin polarization in a spin-memristor