Perturbation of Wave Guides and Cavities by Spheres and Cylinders