The spatial scaling of beta diversity