Coupled dipole method for radiation dynamics in finite photonic crystal structures.