Energetics of fcc and decahedral nanowires of Ag, Cu, Ni, and C-60: A quenched molecular dynamics study