Systematic analysis of the electric power and magnetic energy for linear electric and magnetic circuits with modifiable parameters