Text this: Dual-role ion dynamics in ferroionic CuInP2S6: revealing the transition from ferroelectric to ionic switching mechanisms