Development of X-Ray absorption fine structure techniques for the study of reactions of heavy metal complexes in solution