Modular reconfiguration of flexible production systems using machine learning and performance estimates