Diffraction by a one-dimensionally disordered crystal. I. The intensity equation