STRUCTURE AND STABILITY OF FINITE GOLD NANOWIRES