Hydrostatic analyses of uprighting processes of a capsized and damaged ship