Application of the FDTD technique to periodic problems in scattering and radiation