Computation of optimized arrays for 3-D electrical imaging surveys