Application of a novel diamond detector for commissioning of FLASH radiotherapy electron beams