ham and endives baked in cheese sauce