Free-electron-laser-based biophysical and biomedical instrumentation