On attitude recovery of spacecraft using nonlinear control