Dirichlet absorbing boundary conditions for classical and peridynamic diffusion-type models