Statistics for Study of ternary complexes of cucurbit[8]uril and their applications in self diagnostic composites