This play about the race to build the atomic bomb is ambitious and triumphant, says Dominic Cavendish