An effective semi-analytical method for simulating grounding grids