Principles of Gas Relays