how do submarines stay underwater