Minimum-error single-axis pointing for an underactuated spacecraft in the presence of a residual angular momentum