Imaging of spatial structures in superconducting tunnel junctions by electron-beam scanning