Synthesis of 2-methyl-D-erythritol via epoxy ester-orthoester rearrangement.