Text this: Parameter Optimization for Spacecraft Attitude Stabilization Using Magnetorquers