Control co-design for wave energy farms: Optimisation of array layout and mooring configuration in a realistic wave climate