The generation of internal waves by flow over the rough topography of a continental slope