Creating anisotropic optical materials in FDTD and MODE