Butternut Squash, Apple, and Cranberry Gratin