Stability of Immersed and Floating Bodies