Pulse height defect in pCVD and scCVD diamond based detectors