Interleaving Discrete Search and Continuous Optimization for Kinodynamic Motion Planning