Periodic event-triggered control for nonlinear systems