A comparative study of oxygen adsorption on palladium and platinum using density functional theory calculations