Electronic, magnetic, and structural properties of L10FePtxPd1−x alloys