Divalent lanthanide derivatives in organic synthesis—II: Mechanism of SmI2 reactions in presence of ketones and organic halides