Stereoselectivity of 1,2-hydrogen shifts in carbene rearrangements