Co-design of a wave energy converter for autonomous power