Impact of nitrogen induced defect dynamics on UV response of diamond photodetectors. (June 2020)