Dynamics, Estimation, And Control For Stabilizing The Attitude And Shape Of A Flexible Spacecraft