Solid ionic conductor/semiconductor junctions for chemical sensors