Pseudogaps in incommensurate charge density waves and one-dimensional semiconductors