Stability of the electroweak ground state in the Standard Model and its extensions