Crystal structure of Medicago truncatula ATP-phosphoribosyltransferase in tense form