Local structure of liquid and undercooled liquid Cu probed by x-ray absorption spectroscopy