Oxygen adsorption and stability of surface oxides on Cu(111) : A first-principles investigation