Mechanistic photochemistry: From reactive intermediates to environmental remediation