Behavior of CVD diamond-based TL dosimeters in radiotherapy environments using photon and electron beams from treatment accelerators