Molecular dynamics studies of melting: II. Dislocation density and thermodynamic functions