Influence of imperfect end boundary condition on the nonlocal dynamics of CNTs