Electronic structure and optical properties of conducting and semiconducting conjugated oligomers and polymers: An overview of the quantum-mechanical approaches