A model of evolutionary appearance of dissipative structure in ecosystems