Derivation and interpretation of the Gauss linking number