Carbenoid transfer in competing reactions catalyzed by ruthenium complexes