Local and global optimal control for non-linear systems using two-level methods