Flame dynamics in a vented vessel connected to a duct: 1. Mechanism of vessel-duct interaction