Extended x-ray-absorption fine-structure measurements of copper: Local dynamics, anharmonicity, and thermal expansion