How was the Planck constant calculated in the early 20th century?