Shunting inhibitory cellular neural networks: derivation and stability analysis