Optimal feedback gains for three-dimensional large angle slewing of spacecraft