A microwave resonant cavity method for measuring the resistivity of semi-conducting materials