Reactions of benzocyclic beta-keto esters with tosyl and 4-nitrophenyl azide. Structural influence of dicarbonyl substrate and azide reagent on distribution of diazo, azide and ring-contraction products