While publishers once fretted that digital book sales were eroding more profitable categories like hardcover, they now are finding that e-books — which cost next to nothing to produce and zero to ship and which can’t be returned as unsold merchandise by retailers — are critical profit engines.