Unified treatment of the electronic structure of organic conjugated polymers