On the scattering of baroclinic Rossby waves by a ridge in a continuously stratified ocean