Mathematical treatment of isotopologue and isotopomer speciation and fractionation in biochemical kinetics