Elucidating the Catalytic Role of Mg(II) in the Intramolecular Proton Transfer Reaction in Thymine