A DFT study of chemical ordering and oxygen adsorption in AuPtPd ternary nanoalloys