Methyltrioxorhenium-catalyzed epoxidation-methanolysis of glycals under homogeneous and heterogeneous conditions