Hard x‐ray absorption spectroscopy of CuO and Cu2O with a photoacoustic detector