A study of charge collection processes on polycrystalline diamond detectors