Flow type barrier-discharge UV photoreactor for irradiating liquids and gases