Competing structural and magnetic effects in small iron clusters