Computational Methods For Complex Electromagnetic Geometries And Media