The historical development of quantum theory