Bromination of dimethyl 1-substituted indole-2,3-dicarboxylates