Hydrodynamic stability in accretion disks under the combined influence of shear and density stratification