Precision measurements of the Planck and Avogadro constants