Autonomous Optical Navigation for Interplanetary CubeSats