Calculated magnetocrystalline anisotropy of a FePd ordered alloy: Electron-density dependence on the direction of magnetization