The moment of instability for internal solitary waves