AT&T to buy DirecTV for $48.5 billion