Theoretical insight into linear optical and two-photon absorption properties for a series of N-arylpyrrole-based dyes.