Molecular dynamics study of shock-induced chemistry in small condensed-phase hydrocarbons