Effects of dielectric screening on the optical properties of metallic nanoshells