Adiabatic ac-drive as a tool for acceleration of diffusion in spatially periodic structures and of reset process in threshold devices