Performance of the totem detectors at the LHC