Sequential desorption of dimers from square lattices: A novel mechanism for phase transitions