DIFFRACTION RADIATION GENERATED BY A DENSITY-MODULATED ELECTRON BEAM FLYING OVER THE PERIODIC BOUNDARY OF THE MEDIUM SECTION. IV. STRUCTURES OF FINITE THICKNESS