Processes for the preparation of sugar derivatives