Electromagnetic characteristics of systems of prolate and oblate ellipsoids