Electronic structure of cyclic hexoses