Internal tides and waves near the continental shelf edge