Electron traps and hysteresis in pentacene-based organic thin-film transistors