Characterization of superconducting tunnel junction X-ray detectors by means of monochromatized undulator radiation