On Semidefinite Relaxations for Matrix-Weighted State-Estimation Problems in Robotics