A simple and robust machine learning assisted process flow for the layer number identification of TMDs using optical contrast spectroscopy