Recurrent horizontal transfer of arsenite methyltransferase genes facilitated adaptation of life to arsenic