Molecular dynamics simulation of supersaturated vapor nucleation in slit pore. II. Thermostatted atomic-wall model