Ultraviolet effects on the chemical composition and optical properties of interstellar grains.