Electron and hole trapping in polycrystalline metal oxide materials