Performance optimisation of a wave-charging autonomous underwater vehicle