Chemical bond approach to the structures of chalcogenide glasses with reversible switching properties