A study of factors affecting the stability and strength of ships