Text this: Photon–photon chemical thermodynamics of frequency conversion processes in highly multimode systems