Dynamics of first-order phase transitions in mesoscopic and macroscopic equilibrium and nonequilibrium systemsPohlídat