Flexible electronics and devices as human–machine interfaces for medical robotics