A unified approach for the analysis of networks composed of lumped and distributed elements