Crystal structure of DOX-P Reductoisomerase in complex with magnesium