A superconducting detector endstation for high-resolution energy-dispersive SR-XRF