The role of biodegradation and photo-oxidation in the transformation of terrigenous organic matter