Swept-frequency induced optical cavity ringing