A precise measurement of the Z resonance parameters through its hadronic decays