The effect of the microstructure on the antiferromagnetic to ferromagnetic transition in FeRh alloys