Structure of a meso-diaminopimelate dehydrogenase in complex with NADP