On the evolution of planetesimals in post-main-sequence planetary systems