A new wave spectrum resembling procedure based on ship motion analysis