Finite-Dimensional Periodic Event-Triggered Control of Nonlinear Time-Delay Systems with an Application to the Artificial Pancreas