How did the atomic bombings of Hiroshima and Nagasaki lead to Japan’s unconditional surrender?

The atomic bombings of Hiroshima and Nagasaki in August 1945 were pivotal events in World War II, leading directly to Japan’s unconditional surrender and effectively ending the war. How and why...