Nonlinear optimal perturbations in a Couette flow: bursting and transition