Speciation analysis in chemistry