transient analysis of rl and rc circuits