Mid-infrared spectra of T Tauri disks: modeling the effects of a small inner cavity on CO2 and H2O emission