Spacecraft localization via angle measurements for autonomous navigation in deep space missions