From light to hydrogen: the complete life cycle of free charges in photocatalytic nanoparticles