Molecular dynamics simulations of shock-induced chemistry: application to chemically sustained shock waves