On supercooling and superheating effects in phase transitions