An insect-inspired bionic sensor for tactile localisation and material classification with state-dependent modulation