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