Unitary Excitation Transfer between Coupled Cavities Using Temporal Switching