A quantum mechanical study of proton exchange in sulfoxides with retention and inversion of configuration