Electronic dosimetry in radiation therapy