General Framework for the Analysis of Metamaterial Transmission