Second-moment interatomic potential for gold and its application to molecular-dynamics simulations