Photoconductivity and internal photoemission in semiconducting diamond