Cosmological exploitation of the size function of cosmic voids identified in the distribution of biased tracers