Spacecraft attitude motion planning using GRAFS