Evaluation of a PTW diamond detector for electron beam measurements