Energy system co-design approach for WECs optimisation: the pendulum wave energy converter case study