Ham and Potatoes au Gratin