Cycle slipping in nonlinear circuits under periodic nonlinearities and time delays