Attitude Tracking for Flexible Spacecraft from Quaternion Measurements