Max Planck (1858–1947), pencetus teori mekanika kuantum