Experimental and DFT Studies Explain Solvent Control of C-H Activation and Product Selectivity in the Rh(III)-Catalyzed Formation of Neutral and Cationic Heterocycles.