Robust distributed control of spacecraft formation flying with adaptive network topology