On the reliability of electrical cable and optimal design of ocean energy arrays