Measurement of the 241Am neutron capture cross section at the n-TOF facility at CERN