The nature of voids - II. Tracing underdensities with biased galaxies