Effect of magnetism on surface segregation in FeNi alloys