A machine learning-based approach to optimize repair and increase yield of embedded flash memories in automotive systems-on-chip