Periodic External Input Tunes the Stability of Delayed Nonlinear Systems: From the Slaving Principle to Center Manifolds