Phase transitions in femtosecond laser ablation