Scalloped Potatoes with Onion and Ham