Ambiphilic C-H activation routes to heterocycles