General trends in the behavior of Cd, Hg, Tl and Bi in some major rock forming processes