Inquiry told Tongan ferry unseaworthy