Inverse sampling with unequal selection probabilities