Computer simulations of gold nanowire formation: the role of outlayer atoms