How did Heisenberg discover the uncertainty principle?