Field-Effect Transistor and Photo-Transistor of Narrow-Band-Gap Nanocrystal Arrays Using Ionic Glasses.