Self-diffusion coefficient of bulk and confined water