Event Control for Deadlock Avoidance in Production Systems with Multiple Capacity Resources