Reaction force analysis of the effect of Mg(II) on the 1,3 intramolecular hydrogen transfer in thymine