Gauge-invariant formulation of high-field transport in semiconductors