Dynamics of premixed flames in closed vessels