Transition metal mediated synthesis of heterocycles via carbon-hydrogen bond activation