AT&T plans to split into media and telecom units after Time Warner merger