Docking and berthing of spacecraft