Electronic structure and magnetism ofFe1−xPdxalloys