A method for the measurement of thermally stimulated currents on high resistivity materials