Automatic optical measurement and control of benzene and benzenoids in natural gas pipelines