Non-linear optimal perturbations in a boundary-layer flow