US says diplomacy is key to getting North Korea, Iran to disarm