Finite-difference time-domain simulations of metamaterials