Edge-of-chaos learning achieved by ion-electron–coupled dynamics in an ion-gating reservoir