Electromagnetic Instabilities in an Inhomogeneous Plasma