Currents induced by tides and gravity waves