Braised Endive and Fennel Gratin with Cranberries