Simulation of anticipatory responses in classical conditioning by a neuron-like adaptive element