Determination of dissociation constant of indicators