Doping, density of states, and conductivity in polypyrrole and poly (p-phenylene vinylene)