Cuba Gooding Jr. settles rape suit, avoids civil trial