Transition radiation, non-Hermiticity and temporal modulation in photonic and lattice systems