Iron porphyrin molecules on Cu(001): Influence of adlayers and ligands on the magnetic properties