Side-product inhibition of the catalyst in electrophilic aromatic substitutions and Friedel-Crafts reactions