An introduction to electrical circuit theory