Numerical investigation of the stability of Ag-Cu nanorods and nanowires