Curvilinear soft electronics by micromolding of metal nanowires in capillaries