Calculating and testing of substation grounding systems