Optimizing Multi-Task Learning for Accurate Spacecraft Pose Estimation