Synthesis of π-conjugated systems bearing thiophene and pyrrole heterocycles through palladium catalyzed cross-coupling reactions