Analysis and compensation of numerical dispersion in the FDTD method for layered, anisotropic media