Bragg diffraction of finite beams by thick gratings: Two rival theories