Zero-order and first-order theory of the formation of space-charge gratings in photoconductive polymers