Application of a generating function to reaction kinetics in micelles. Kinetics of quenching of luminescent probes in micelles