Control-informed ballast and geometric optimisation of a three-body hinge-barge wave energy converter using two-layer optimisation