The quenching of two-dimensional premixed flames