PML boundary conditions in FDTD and MODE