Neural networks enable autonomous navigation of catheters