Three-dimensional optical pulse simulation using the FDTD method