Optimal design of the ocean thermal energy conversion systems involving weather and energy demand variations