Transient analysis of circuits containing capacitors