A general approach to analysis of distributed resistive structures