Metal-dielectric superlenses for ultraviolet and visible light