High resolution X-ray spectroscopy with superconducting tunnel junctions