Automated rendezvous and docking of spacecraft