Rational design of capacitive sensors with microstructured dielectrics for medical devices and robotics