An all-solid-state biocompatible ion-to-electron transducer for bioelectronics