First-principles calculation of the Ag-Cu phase diagram.