The San Francisco Chronicle, once imperiled, is profitable — and growing its digital business