Development of a 3-layer thermodynamic model of the upper ocean for studies on teleconnections from the tropical oceans