Determination and application of the excited‐state substituent constants of pyridyl and substituted phenyl groups