Event-based optimization for dispatching policies in material handling systems of general assembly lines