A molecular dynamics simulation on surface tension of liquid Ni and Cu