Modifying the magnetic anisotropy of an iron porphyrin molecule by an on-surface ring-closure reaction