Structural analysis of branching enzyme and ADP-glucose pyrophosphorylase