Stability based approach to design cold-water pipe (CWP) for ocean thermal energy conversion (OTEC)