Bias and thickness dependence of the infra-red Schottky diode studied by internal photoemission