Triggered Convection, Gravity Waves, and the MJO: A Shallow-Water Model