FDTD simulation of the electromagnetic field surface states in 2D photonic crystals