Efficient and fast procedure for the calculation of electric and magnetic energies | IEEE Conference Publication | IEEE Xplore