1-pyrroline-5-carboxylate dehydrogenase activity of Aldehyde dehydrogenase [mitochondrial matrix]