A variational calculation of the effective surface diffusion coefficient and tortuosity