Performance of CVD diamond as a thermoluminescent dosemeter