Designing Nonlinear Zero Dynamics to Reject Periodic Waveforms