The making of the kilogram, 1789-1799