Propagation of surface plasmon polaritons through gradient index and periodic structures