Electronic skin that ‘feels’ pain could lead to smarter prosthetics and robots