A precise determination of the number of families with light neutrinos and of the Z boson partial widths