Instability of two-layer flows with viscosity and density stratification