The JUNGFRAU Detector for Applications at Synchrotron Light Sources and XFELs