Answer the following question:
When silver chloride and silver bromide are exposed to sunlight, both undergo photochemical decomposition.
i. What is the chemical equation representing the reaction of \(AgCl\) with sunlight?
ii. What is the role of this photochemical reaction in photography?