Smart foam gives robots a human-like sense of touch