Structural basis for cofactor and substrate selection by cyanobacterium succinic semialdehyde dehydrogenase.