A molecular dynamics study of the displacive surface reconstruction phase transitions