Ballistic and diffusive components in the dynamic spectra of ultrahigh energy cosmic rays from nearby transient sources