Propagation of tides along a river with a sloping bed