Chemo- and regioselectivity in the reactions of polyfunctional pyrroles