Tuning the electronic structure of solids by means of nanometer-sized microstructures