Lightning overvoltage studies in medium voltage distribution lines