Text this: Bio-inspired flexible artificial synapses for pain perception and nerve injuries