An acidity function based on thiocarbonyl indicators