Gauss linking number and the electromagnetic uncertainty principle