Leak detection and localisation on a gas pipeline using the gradient of squared pressure