Analysis of loss of nuclear submarine of the Soviet Navy and the US Navy