Two problems involved in solving complex formation equilibria: the selection of species and the calculation of stability constants