Expert Control Theory: a key for solving production planning and control problems in flexible manufacturing