The structure of Medicago truncatula δ1-pyrroline-5-carboxylate reductase provides new insights into regulation of proline biosynthesis in plants