Lessons from the quantum control landscape: Robust optimal control of quantum systems and optimal control of nonlinear Schrödinger equations