Combining Optimal Control and Learning for Visual Navigation in Novel Environments