A coupled framework for large-scale spacecraft trajectory and system co-optimization