The relationship between species detection probability and local extinction probability