Stochastic models of firstorder nonequilibrium phase transitions in chemical reactions