Magnetocrystalline anisotropy and compositional order in Fe0.5Pt0.5: Calculations from an ab initio electronic model