Pseudo-spectral time-domain simulation of the transmission and the group delay of photonic devices