Associated Press posts first revenue gain in 6 years