Effect of an inversion layer on the current-voltage characteristics of semiconductor grain boundaries