Cartesian Grid Mapper: Transformation Media for Modeling Arbitrary Curved Boundaries With Cartesian Grids