Analyte detection using an ion-channel sensor array