Gauge-theoretic invariants in algebraic geometry