New York Times Co. reports $24 million profit, thanks to digital subscribers