Continuous-time quantum walks and trapping