The CANDIDO project: development of a CVD diamond dosimeter for applications in radiotherapy