Microinstabilities in Inhomogeneous Plasmas: Theory