velocity of gravity waves is given by u=