Neutron capture cross section of Th-232 measured at the n_TOF facility at CERN in the unresolved resonance region up to 1 MeV