A rotated difference scheme for Cartesian grids in complex geometries