Dealing with Cu reduction in X-ray absorption spectroscopy experiments