Digital subscription growth powers New York Times profit beat