Electron diffraction through an aperture in a potential wall