New York Times Co. gains circulation, but profit falls 21%