Gannett, McClatchy team up to sell ads