Molecular dynamics simulation of microstructure evolution and heat dissipation of nanoscale friction