Ab initio optical absorption in conjugated polymers: the role of dimensionality,