Addressing and tailoring the electronic properties of semiconductor nanostructures: nanowires and transition metal dichalcogenides