Ambipolar diffusion and motion of ion clouds in the earth's magnetic field