Electrolyte-gated transistors with good retention for neuromorphic computing