Phase transitions and critical phenomena