where did the metric system orginate?