Analysis of large grounding systems for earth-resistance measurements in two-layer soils