Nonperiodic Perturbations in Periodic RF Structures