A complex magnetic structure in the magnetoresistive La0.82Ba0.18CoO3