Electronic structure of poly(p-phenylenevinylene) and poly(2,5-thienylenevinylene)