Advanced three-dimensional electromagnetic modeling using a nested integral equation approach