Grounding Calculation in Advanced Ship Stability - Calculating loss of GM