Diffusion of a massive particle in a periodic potential: Application to adiabatic ratchets.