Reaction of indole derivatives with bromine. Substitution, oxidation, and dimerization