Pulse height defect and electrical depolarization in pCVD and scCVD diamond based detectors