Ballistic electrons in an inhomogeneous submicron structure: Thermal and contact effects | Synapse