First-principles calculation of DNA looping in tethered particle experiments