Analytical applications of thiosemicarbazones and semicarbazones