Gauge invariant definition of the jet quenching parameter