Effects of diffraction on the (e,2e) reaction in crystals