Waves and currents near the continental shelf edge