A contribution to the theory of the triple crystal diffractometer