New York Times warns of ad sales drop after upbeat first-quarter results