Visible light-induced transformation of aldehydes to esters, carboxylic anhydrides and amides