Influence of substituents on the N K X-ray absorption near-edge structure of pyrrole derivatives