Modeling of electromagnetic fields and electrical circuits with lumped and distributed elements by the WETD method