Transport of magnesium and other divalent cations: evolution of the 2-TM-GxN proteins in the MIT superfamily