Density-functional and plane-wave approach to structural properties of poly(p-phenylene) and poly(p-phenylene vinylene)