Practical Synthesis and Application of Halogen-Doped Pyrrole Building Blocks