Structure factor of a semidilute solution of rodlike macromolecules