Mechanism of SmI2/amine/H2O-promoted chemoselective reductions of carboxylic acid derivatives (esters, acids, and amides) to alcohols.