X-ray spectroscopy of dilute metalloproteins with a transition-edge sensor