Minority carrier MIS tunnel diodes and their application to electron- and photo-voltaic energy conversion—I. Theory