Visible light-promoted ring-opening functionalization of three-membered carbo- and heterocycles.