Electronic and Optical Properties of Conjugated Polymers