First-principles study of binary and ternary alloys based on PdCu as oxygen reduction catalysts