Tactile sensory coding and learning with bio-inspired optoelectronic spiking afferent nerves