Density gradients and the Farley-Buneman instability