Stereodivergent Carbamate Synthesis by Selective in Situ Trapping of Organic Carbonate Intermediates.