Numerical modeling and analysis of complex electromagnetic structures, including those containing ferrites