Big-bang nucleosynthesis as a probe of cosmology and particle physics