Modelling of light absorption in photoreactors Part I. General formulation based on the laws of photometry