Grain size effects in CVD diamond detectors