Cheesy scalloped potatoes and ham