Molecular rearrangements with ethoxycarbonyl group migrations. 2. Rearrangement of 1,2-glycols, halohydrins, and azidohydrins