Construction of a multipurpose photochemical reactor with on-line spectrophotometric detection