Model electrodes with defined mesoscopic structure