Distributed attitude control for multiple spacecraft with communication delays