An investigation of the operating characteristics of two PTW diamond detectors in photon and electron beams