Effects of sherically-symmetric gravitational lenses produced by galaxies and clusters