Medical devices for modulating nerves