Fast infrared detectors for beam diagnostics with synchrotron radiation