Frequency-dependent learning achieved using semiconducting polymer/electrolyte composite cells.