A molecular dynamics investigation of the dissolution of molecular solids