Autonomous detection of the loss of a wing for underwater gliders