AT&T spinning off DirecTV after losing millions of customers