The transfer function of general two terminal-pair RC networks