Computational Adaptive Optimal Control of Spacecraft Attitude Dynamics with Inertia-Matrix Identification