Butternut squash and apple gratin