Continuous sugar upgrading using Lewis acid catalysts