Structure of a meso-diaminopimelate dehydrogenase