Internal wave reflection on shelf slopes with depth-varying stratification