Autonomous Navigation of Relativistic Spacecraft: Theory and Applications