The Effect of Boundaries on the Stability of Inviscid Stratified Shear Flows