Magnetization reversal through an antiferromagnetic state